package muilty_thread.pic_java_design_pattern.balking;

import muilty_thread.pic_java_design_pattern.GuardedSuspension.ServerThread;

import java.util.Random;

/**
 * @version: 1.0
 * @Description: TODO
 * @author: zZmH
 * @date: 2020/10/12 00:53
 */


public class Main {

    public static void main(String[] args) {
        Data data = new Data("abc.txt", "sdfsdf", true);
        new Thread(new SaverThread(data)).start();
        new Thread(new ChangerThread(data)).start();

    }
}
